package com.eig.student.controller;

import com.eig.common.vo.Result;
import com.eig.student.service.StudentService;
import com.eig.student.vo.Studentvo;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.File;

/**
 * @author ：liu666
 * @date ：
 * @description：
 * @modified By：
 * @version:
 */
@RestController
@RequestMapping("/student")
public class StudentController {
    @Resource
    private StudentService studentService;

    @GetMapping("/member/findStudentBymobile/{mobile}")
    public Result findStudentBymobile(@PathVariable(required = true) String mobile){
        return studentService.getMember(mobile);
    }

    @PostMapping("/member/modifyStudentInformation")
    public Result modifyStudentInformation(@RequestBody Studentvo studentvo){
        return studentService.updMember(studentvo);
    }

    @PostMapping("/member/uploadMsg")
    public Result uploadMsg(File file){
        return studentService.uploadMsg(file);
    }
}
